package com.freesky.biz.psbc.service.impl;

import com.freesky.biz.psbc.domain.TPsbcParity;
import com.freesky.biz.psbc.domain.TPsbcParityItem;
import com.freesky.biz.psbc.mapper.PsbcParityMapper;
import com.freesky.biz.psbc.service.IPsbcParityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PsbcParityServiceImpl implements IPsbcParityService {

    @Autowired
    private PsbcParityMapper parityMapper;


    @Override
    public TPsbcParity get(String id) {
        return parityMapper.get(id);
    }

    @Override
    public TPsbcParity getByName(String name) {
        return parityMapper.getByName(name);
    }

    @Override
    public List<TPsbcParity> findList(TPsbcParity entity) {
        return parityMapper.findList(entity);
    }

    @Override
    public int insert(TPsbcParity entity) {
        return parityMapper.insert(entity);
    }

    @Override
    public int update(TPsbcParity entity) {
        return parityMapper.update(entity);
    }

    @Override
    public int deleteByIds(String[] ids) {
        return parityMapper.deleteByIds(ids);
    }

    @Override
    public int addParityItem(TPsbcParityItem psbcParityItem) {
        return parityMapper.addParityItem(psbcParityItem);
    }

    @Override
    public int updateParityItem(TPsbcParityItem psbcParityItem) {
        return parityMapper.updateParityItem(psbcParityItem);
    }

    @Override
    public TPsbcParityItem getParityItemById(String id) {
        return parityMapper.getParityItemById(id);
    }

    @Override
    public List<TPsbcParityItem> getParityItemByParityId(String parityId) {
        return parityMapper.getParityItemByParityId(parityId);
    }

    @Override
    public int deleteParityItemById(String id) {
        return parityMapper.deleteParityItemById(id);
    }
}
